<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::get('/admin',function(){
	return '这里是网站的后台';
});
Route::get('/login',function(){
	echo '999'.'<br>';
	return '这里是网站的登录页面';
	
});
Route::get('/form',function(){
	return view('add');
});
Route::post('/insert',function(){
	echo "ioio";
});
Route::get('/goods/{id}',function($id){
	echo'当前的商品的id为'.$id;
});

Route::get('/{id}',function($id){
	echo '商品的详细信息id'.$id;
});

//后台用户的删除 http://www.
Route::get('/Admin/User/delete',[
	'as'=>'udelete',
	'uses'=>function(){
		echo 'yonghh 999';
	}

]);


Route::get('/Admin/Login/add',[
	'as'=>'udelete',
	'uses'=>function(){
		//echo '用户的添加页面哈哈哈哈哈';
		//快速用别名来创建url地址
		//echo route('udelete');
		return view('user');
	}
]);

Route::group([],function(){
	
	
});